package skypeUtil;

import java.sql.Statement;

/**
* Used for launching skpe database operations in threads
*/

public class SkypeStartRunner implements Runnable {
	private SkypeUtilFunction executor;
	private String command;
	private	Statement statement;

	/**
	* Constructor
	* @param executor Used to parse command
	* @param command Command, specified by user
	* @param statement Database connection statement
	*/
	public SkypeStartRunner(SkypeUtilFunction executor, String command, Statement statement) {
		this.executor = executor;
		this.command = command;
		this.statement = statement;
	}

	public void run() {
		executor.parseCommand(command, statement);
		System.out.print(">");
	} 
}